import com.briup.bean.Category;
import com.briup.bean.Customer;
import com.briup.bean.ShopAddress;
import com.briup.dao.CategoryMapper;
import com.briup.service.IShopAddressService;
import com.briup.service.impl.IShopAddressServiceImpl;
import com.briup.util.MyBatisSqlSessionFactory;

import java.util.List;

/**
 * @author 王若龙
 * @CreateTime 2022-09-23 11:14
 */
public class test {

//    public static void main(String[] args) {
//        CategoryMapper categoryMapper = MyBatisSqlSessionFactory.openSession(true).getMapper(CategoryMapper.class);
//        List<Category> allCategorys = categoryMapper.findAllCategorys();
//        System.out.println(allCategorys);
//    }


    private static IShopAddressService service = new IShopAddressServiceImpl();


    public static void main(String[] args) {
        ShopAddress shopAddress = new ShopAddress("受贿人", "地址", "手机号", new Customer(7));
        service.saveAddress(shopAddress);
        System.out.println("shopAddress.getId() = " + shopAddress.getId());

    }
}
